import {
    menulist
} from '../../../request/app'

const state = {
    menulist:[]
}

const getters = {
    getstatemenulist(state){
        return state.menulist
    }

}

const mutations = {
    SETlist(state,payload){
        state.menulist=payload
    }
}

const actions = {
    ACgetlist({commit}) {
        menulist({
            istree:1
        })
            .then(res => {
                // console.log(res);
                commit('SETlist',res.list)
            })
    }

}

export default {
    state,
    mutations,
    actions,
    getters,
    namespaced: true
}